import { BaseEntity } from '@cool-midway/core';
import { Column, Index, Entity } from 'typeorm';

/**
 * doupiaopiao_tbOrder 票码
 */
@Entity('doupiaopiao_tblist')
export class DoupiaopiaoTblistEntity extends BaseEntity {
  @Column({ comment: '淘宝订单Id', length: 50 })
  tborderId: string;

  @Column({ comment: '买家openid', nullable: true, length: 500 })
  buyer_open_id: string;

  @Column({ comment: '支付金额', nullable: true, length: 500 })
  tbTotalMoney: string;

  @Column({
    comment: '支付状态',
    nullable: true,
    length: 500,
  })
  status: string;

  @Column({
    comment: 'skuid下单id',
    nullable: true,
    length: 500,
  })
  tb_skuid: string;

  @Column({
    comment: 'title标题',
    nullable: true,
    length: 500,
  })
  tb_title: string;

  @Column({
    comment: '单价',
    nullable: true,
    length: 500,
  })
  tb_price: string;

  @Column({
    comment: '数量',
    nullable: true,
    length: 500,
  })
  tb_num: string;

  @Column({
    comment: '用户Id',
    nullable: true,
    length: 500,
  })
  userId: string;

  @Column({ comment: '支付方式 0未提交 1芒果提交', default: 0 })
  isSubmit: number;
}
